Skip to content

fix(transient): cancel transient newlines as with primary newlines#7595

Merged
JanDeDobbeleer merged 1 commit into
JanDeDobbeleer:nextfrom
rightaditya:transient-cancel-newline
Jun 23, 2026
Merged

fix(transient): cancel transient newlines as with primary newlines#7595
JanDeDobbeleer merged 1 commit into
JanDeDobbeleer:nextfrom
rightaditya:transient-cancel-newline

Conversation

@rightaditya

Copy link
Copy Markdown
Contributor

Prerequisites

  • I have read and understood the contributing guide.
  • The commit message follows the conventional commits guidelines.
  • Tests for the changes have been added (for bug fixes / features).
  • Docs have been added/updated (for bug fixes / features).

Description

Currently, if a prompt has newline set to true, the newline will be omitted in several sensible cases. However this behaviour isn't followed if transient_prompt has newline set to true, meaning the positioning of the transient prompt relative to the primary one differs depending on whether the cancellation criteria are met and the primary prompt has had its newline removed.

This PR makes sure that both prompt types use the same cancellation logic.

NB: this PR is a re-submission of #7577 as per @JanDeDobbeleer's suggestion.

Currently, if a prompt has `newline` set to `true`, the newline will be
omitted in several sensible cases. However this behaviour isn't followed
if `transient_prompt` has `newline` set to `true`, meaning the
positioning of the transient prompt relative to the primary one differs
depending on whether the cancellation criteria are met and the primary
prompt has had its newline removed.

This patch makes sure that both prompt types use the same cancellation
logic.
@JanDeDobbeleer JanDeDobbeleer changed the base branch from main to next June 23, 2026 05:44
@JanDeDobbeleer JanDeDobbeleer merged commit 3d22304 into JanDeDobbeleer:next Jun 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants